package com.swa99ylum.pxp.a.a005;

public class Indexer {
	
	private Index index;

	/**
	 * 构造函数
	 */
	public Indexer(Index index) {
		super();
		this.index = index;
	}
	
	public boolean triggerBeginning(Cell cell) {
		System.out.println("Indexer.triggerBeginning()");
		
		if(cell.getValue() == 1) {
			return true;
		} else {
			return false; 
		}
		
	}
	
	public boolean triggerEnding(Cell cell) {
		System.out.println("Indexer.triggerEnding()");
		
		if(cell.getValue() == 0) {
			return true;
		} else {
			return false; 
		}
	}


	/**
	 * getter、setter
	 */
	public Index getIndex() {
		return index;
	}

	public void setIndex(Index index) {
		this.index = index;
	}
	
}
